home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / armadilloknight.swf / scripts / DefineSprite_299 / frame_1 / PlaceObject2_168_571 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2006-05-08  |  378b  |  22 lines

  1. onClipEvent(enterFrame){
  2.    if(active)
  3.    {
  4.       if(bearing == "right")
  5.       {
  6.          this._x += speed;
  7.          if(originX + range < this._x)
  8.          {
  9.             deactivate();
  10.          }
  11.       }
  12.       else
  13.       {
  14.          this._x -= speed;
  15.          if(this._x < originX - 200 - range)
  16.          {
  17.             deactivate();
  18.          }
  19.       }
  20.    }
  21. }
  22.